package cn.tedu.test.rpc.demo05;

import cn.tedu.test.rpc.common.IProductService;
import cn.tedu.test.rpc.common.IUserService;
import cn.tedu.test.rpc.common.Product;
import cn.tedu.test.rpc.common.User;

public class Demo05Client {
    public static void main(String[] args) {
        /*IUserService service1= (IUserService) Stub.getStub(IUserService.class);
        //System.out.println(service.findUserById(555l));
        service1.saveUser(new User(1233456l, "刘有才"));*/
        IProductService service2= (IProductService) Stub.getStub(IProductService.class);
        Product productById = service2.findProductById(111l);
        System.out.println(productById);
    }
}
